package com.tcsl.exercise.demo.service;

import com.tcsl.exercise.demo.constants.ResultEnum;
import com.tcsl.exercise.demo.entity.ItemEntity;
import com.tcsl.exercise.demo.entity.ItemSizeCa;
import com.tcsl.exercise.demo.entity.Page;

import java.util.List;

public interface ItemService {

    List<ItemEntity> selectOne(Integer curr,Integer pageSize,String keyWord);

    List<ItemSizeCa> selectItemCa();

    ResultEnum addItem(ItemEntity itemEntity);

    int deleteById(Long id);

    int selectByName(String name);

    int selectById(Long id);

    ResultEnum editItemById(ItemEntity itemEntity);

    int selectItemCount(String keyword);
}
